package com.yzh.service;

import com.yzh.util.MyUtil;

/**
 * @author 于振晗
 * @title: ComputerPlary
 * @description: TODO 电脑玩家
 * @date 2020年08月29日
 * @path com.yzh.service
 */
public class ComputerPlayer extends Player {
    public ComputerPlayer(String name) {
        super(name);
    }

    @Override
    public int getInputValue() {
        int randomInt = MyUtil.getRandomInt();
        this.setValue(randomInt);
        return randomInt;
    }
}
